package com.wtb.javatool.service;

import com.fy.wetoband.utils.RequestUtil;
import com.wtb.javatool.common.PageBean;
import com.wtb.javatool.dto.UserDto;
import com.wtb.javatool.entity.Student;
import com.wtb.javatool.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {

    List<User> findUser(Long userId, String userName, String phone, Integer projectType, Integer userType);

    PageBean<UserDto> findClassStudents(Long classId,
                                        Long teamId,
                                        Long studentId,
                                        String userName,
                                        Integer haveTeam,
                                        Integer currentPage,
                                        Integer size);

    void setTeamForStudents(Long classId, Long teamId, List<Long> studentIds);

    PageBean<Student> findAllStudents(Long classId,
                                      Long studentId,
                                      String studentName,
                                      Integer begin,
                                      Integer size);
    String addUser(Long userId,
                   Long bandId,
                   String password,
                   String email,
                   String phone,
                   String role,
                   String studentName,
                   String teacherName);

    User findUserByPassword(Long userId, String password, String role);
}
